const isIEBrowser = () => {
  if (!!window.ActiveXObject || 'ActiveXObject' in window) {
      return true
  }
  return false
}

const isPromise = (ret) => {
  return (ret && typeof ret.then === 'function' && typeof ret.catch === 'function')
}

export { isIEBrowser, isPromise }